<template>
  <transition name="fade">
    <router-view></router-view>
  </transition>
</template>

<script>
export default {
  mounted () {
    this.initIo()
  },
  methods: {
    initIo () {
      console.log('initIo')
      // this.$io('http://localhost:8102/')
      let self = this
      // self.$socket.on('connect', function (data) {
      //   console.log('socket.io 连接成功')
      //   self.$socket.emit('register', self.$store.state.user.name)
      // })
    }
  }
}
</script>
